<?php 
	//-------------------INPUT ELEMENTS----------------
	$name_app 	= $this->Item['name_app'];
	if(!empty($this->Item['link_img'])){
		$link_img 	= FILES_URL . '/developer/imgs/img110x110/' . $this->Item['link_img'];
		$link_img	= '<img src="' . $link_img . '"> <br>' . $this->Item['link_img'];
	} else {
		$link_img = "chua co duong dan";
	}
	
	$link_app	= $this->Item['link_app'];
	if(empty($link_app)){
		$link_app = "chua co duong dan";
	}
	$status = $this->Item['status'];
	if($status == 1){
		$status = $this->cmsIconButton('Active', $this->imgUrl . '/icon/active.png');
	}else{
		$status = $this->cmsIconButton('INactive', $this->imgUrl . '/icon/inactive.png');
	}
	
	
	//$options = $this->slbGroup;
	$type_app 	= $this->typeApp[$this->Item['type_app']]; 
	$group_app 	= $this->groupApp[$this->Item['group_app']];
	$des_app 	= $this->cmsReplaceString($this->Item['des_app']);
	$star 		= $this->Item['star'];
	
	//echo $this->Item['sign'];
	$arrInput = array(
						array('label'=>'Name app: '	, 	'input'=>$name_app),
						array('label'=>'Link app: '	, 	'input'=>$link_app),
						array('label'=>'Link Img: '	, 	'input'=>$link_img,'style'=>'margin-left: 175px;'),
						array('label'=>'Status: '	, 	'input'=>$status),
						array('label'=>'Group App: ', 	'input'=>$group_app),
						array('label'=>'Type App: '	, 	'input'=>$type_app),
						array('label'=>'Star: '		, 	'input'=>$star),
						array('label'=>'Description: ', 'input'=>$des_app,'style'=>'margin-left: 175px;'),
						);
	//------------------------MESSAGES ERROR----------------------
		if(count($this->messageError)>0){
			$errors = $this->formErrors($this->messageError,array('id'=>'errors'));
		}else {
			$errors ="";
		}					
?>


<form name="appForm" method="post" action="" enctype="multipart/form-data">



                        <?php echo $this->render('admin-user/toolbar/index.php')?>
                        <div class="clr"></div>
                         <?php echo $this->render('admin-user/sublink/index.php')?>
                         <?php echo $errors?>
			
                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
						<div id="adminfieldset">
                             <div class="adminheader">Detail</div>
								
								<?php echo $this->partialLoop('row.php',$arrInput);?>
                                
							</div>
							
                                <!-- END: ELEMENT BOX -->	
                              <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>